<div class="clearfix"></div>
<div class="albumsHeaderMain">
	<h1>
		<a href="<?php echo $this->subject()->getHref();?>">
			<span class=""><?php echo $this->subject()->getTitle();?></span>
		</a>
			<i class="sp_46v94c icon"></i>
		<span><?php echo $this->translate('Albums')?></span>
	</h1>
</div>
<br>
<div class="clearfix"></div>
<div class="albumsHeader">
	<span class=" rfloat fsm fwn fcg">
		<?php echo $this->translate('View All');?>: 
		<a href="<?php echo $this->url(array('action'=>'show', 'user_id'=>$this->subject()->getIdentity(), 'type' => 'viewall', 'subject'=>'albums'), 'album_general', true);?>"><?php echo $this->translate('Albums')?></a>
	</span>
	<div>
		<h3 class="uiHeaderTitle">
			<?php if($this->subject()->getIdentity() == $this->viewer()->getIdentity()):
					echo $this->translate('Your Albums');
				  else:
					echo $this->translate('%s\'s Albums', $this->subject()->__toString());				
				  endif;
			?>			
		</h3>
	</div>
</div>
<?php if( $this->paginator->getTotalItemCount() > 0 ): ?>
	<?php echo $this->partial('horizontal_list_albums.tpl', 'ialbum',
	 array('paginator' =>  $this->paginator, 'ignore_by' => 'true'));?>
<?php else: ?>
    <div class="tip">
      <span>
        <?php echo $this->translate('%s has created an album yet.', $this->subject()->getTitle());?>
      </span>
    </div>
<?php endif; ?>